RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
UnicodeString::[] Operator (int)

Returns character at specified index in string.

Pascal
operator [](const idx: Integer);
operator [](const idx: Integer);
C++
__fastcall wchar_t operator [](const int idx) const;
__fastcall wchar_t& operator [](const int idx);

System::UnicodeString::[] returns the character in the string at the character index value idx. The System::UnicodeString::[] assumes a base index of 1. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!